Skip to contentSkip to conversation

VMM detection

DISCUSSION Wu Bingzheng 4 participants 5 messages Mar 5, 2009 – Mar 6, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

It would be impossible to hide virtualisation from a PV guest kernel of course, and very hard to hide it from a PV guest application also.

-- Keir

So do you mean that in HVM guest, the SGDT will get the GDT of guest, but not Xen?

It lists 17 instructions in Pentium instruction set, which is virtualization sensitive and unprivileged, including SGDT, at paper named
Analysis of the IntelPentium's Ability to Support aSecure Virtual Machine Monitor
<http://www.usenix.org/events/sec00/full_papers/robin/robin_html/index.html>.
Using these instructions, we can detect VMM on a PV guest.

I want to know if we can use these instructions to detect VMM on a HVM guest.

Thanks,
Wu

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

#1 lore raw
Quoted 11 lines · Wu Bingzheng

So do you mean that in HVM guest, the SGDT will get the GDT of guest, but not Xen?

It lists 17 instructions in Pentium instruction set, which is virtualization sensitive
and unprivileged, including SGDT, at paper named
Analysis of the IntelPentium's Ability to Support aSecure Virtual Machine Monitor
<http://www.usenix.org/events/sec00/full_papers/robin/robin_html/index.html>.
Using these instructions, we can detect VMM on a PV guest.

Quoted 1 line

I want to know if we can use these instructions to detect VMM on a HVM guest.

No, they behave 'natively' when running as an HVM guest. The guest cannot easily tell it is running on a VMM.

-- Keir

#2 lore raw
Quoted 5 lines
Quoted 1 line

I want to know if we can use these instructions to detect VMM on a HVM

guest.

No, they behave 'natively' when running as an HVM guest. The guest cannot easily tell it is running on a VMM.

How about from performance side? At least some instructions are much slower in a VM than native today.
-Xin

#3 lore raw
In reply to Keir Fraser
Quoted 13 lines · Keir Fraser
Quoted 11 lines · Wu Bingzheng

So do you mean that in HVM guest, the SGDT will get the GDT of guest, but not Xen?

It lists 17 instructions in Pentium instruction set, which is virtualization sensitive
and unprivileged, including SGDT, at paper named
Analysis of the IntelPentium's Ability to Support aSecure Virtual Machine Monitor
<http://www.usenix.org/events/sec00/full_papers/robin/robin_html/index.html>.
Using these instructions, we can detect VMM on a PV guest.

Quoted 5 lines
Quoted 1 line

I want to know if we can use these instructions to detect VMM on a HVM guest.

No, they behave 'natively' when running as an HVM guest. The guest cannot easily tell it is running on a VMM.

It is not difficult if you look else where. For ex, HVM uses Bochs BIOS, and that is a clear evidence.

There are already a lot of papers proved that it is impossible to hide the fact that your machine is virtual. You can search on Usenix website, for example.

Thanks,
J

#4 lore raw
Quoted 10 lines · Jun Koi
Quoted 3 lines

No, they behave 'natively' when running as an HVM guest. The guest cannot easily tell it is running on a VMM.

It is not difficult if you look else where. For ex, HVM uses Bochs BIOS, and that is a clear evidence.

There are already a lot of papers proved that it is impossible to hide the fact that your machine is virtual. You can search on Usenix website, for example.

I believe it will always be trivial as a kernel. As an application less so. Certainly the specific '17 unvirtualisable instructions' the OP asked about are handled undetectably by HVM.

-- Keir